package com.hulu73.struts1.core;

public class ForwardConfig extends BaseConfig{
	
	protected String name = null;
	
	protected String path = null;
	
	protected String module = null;
	
	protected boolean redirect = false;
	
	protected String command = null;
	
	public ForwardConfig() {
        super();
    }
	
	public ForwardConfig(String name, String path, boolean redirect) {
        super();
        setName(name);
        setPath(path);
        setRedirect(redirect);
    }
	
	public ForwardConfig(String name, String path, boolean redirect,
	        String module) {
	        super();
	        setName(name);
	        setPath(path);
	        setRedirect(redirect);
	        setModule(module);
	    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getModule() {
		return module;
	}

	public void setModule(String module) {
		this.module = module;
	}

	public boolean getRedirect() {
		return redirect;
	}

	public void setRedirect(boolean redirect) {
		this.redirect = redirect;
	}

	public String getCommand() {
		return command;
	}

	public void setCommand(String command) {
		this.command = command;
	}
	
	  public String toString() {
	        StringBuffer sb = new StringBuffer("ForwardConfig[");

	        sb.append("name=");
	        sb.append(this.name);
	        sb.append(",path=");
	        sb.append(this.path);
	        sb.append(",redirect=");
	        sb.append(this.redirect);
	        sb.append(",module=");
	        sb.append(this.module);
	        sb.append(",command=");
	        sb.append(this.command);
	        sb.append("]");

	        return (sb.toString());
	    }

	

}
